﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.orders {

    public class LotOrder extends AbstractOrder {

        public static const LOT_ID:String = "lotId";
        public static const RESOURCE_TYPE:String = "resourceType";
        public static const ORDER_RESOURCE_NAME:String = "orderResourceName";
        public static const CONSTRUCTION_COUNT:String = "constructionCount";
        public static const OFFSET_X:String = "offsetX";
        public static const OFFSET_Y:String = "offsetY";

        public function LotOrder(_arg1:String, _arg2:String, _arg3:int=0, _arg4:String="", _arg5:String="", _arg6:int=0, _arg7:String=null){
            super(_arg1, _arg2, OrderType.LOT, _arg7);
            this.setLotId(_arg3);
            this.setResourceType(_arg4);
            this.setOrderResourceName(_arg5);
            this.setConstructionCount(_arg6);
            setState(OrderStates.PENDING);
        }
        public function getLotId():int{
            return (m_params[LOT_ID]);
        }
        public function setLotId(_arg1:int):void{
            m_params[LOT_ID] = _arg1;
        }
        public function getResourceType():String{
            return (m_params[RESOURCE_TYPE]);
        }
        public function setResourceType(_arg1:String):void{
            m_params[RESOURCE_TYPE] = _arg1;
        }
        public function getOrderResourceName():String{
            return (m_params[ORDER_RESOURCE_NAME]);
        }
        public function setOrderResourceName(_arg1:String):void{
            m_params[ORDER_RESOURCE_NAME] = _arg1;
        }
        public function getConstructionCount():int{
            return (m_params[CONSTRUCTION_COUNT]);
        }
        public function setConstructionCount(_arg1:int):void{
            m_params[CONSTRUCTION_COUNT] = _arg1;
        }
        public function getXOffset():int{
            return (m_params[OFFSET_X]);
        }
        public function setXOffset(_arg1:int):void{
            m_params[OFFSET_X] = _arg1;
        }
        public function getYOffset():int{
            return (m_params[OFFSET_Y]);
        }
        public function setYOffset(_arg1:int):void{
            m_params[OFFSET_Y] = _arg1;
        }
        override public function getParams():Object{
            var _local1:Object = new Object();
            _local1[SENDER_ID] = m_params[SENDER_ID];
            _local1[RECIPIENT_ID] = m_params[RECIPIENT_ID];
            _local1[LOT_ID] = m_params[LOT_ID];
            _local1[RESOURCE_TYPE] = m_params[RESOURCE_TYPE];
            _local1[ORDER_RESOURCE_NAME] = m_params[ORDER_RESOURCE_NAME];
            _local1[CONSTRUCTION_COUNT] = m_params[CONSTRUCTION_COUNT];
            _local1[OFFSET_X] = m_params[OFFSET_X];
            _local1[OFFSET_Y] = m_params[OFFSET_Y];
            return (_local1);
        }

    }
}//package Classes.orders 
